<?php

function module_list_link($caption, $module, $current_class = 'current') {
  if (sfContext::getInstance()->getModuleName() == $module) {
    return content_tag('li', $caption, array('class'=>$current_class));
  }
  else {
    return content_tag('li', link_to($caption, "@$module"));
  }
}

?>
